package com.cat.yygh.hosp.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
//去找pojo对应的集合
//@Document(value = "actor")
public class Actor {
//    @Id//当前属性与mangodb的_id相对应
    private String id;
//    @Field(value = "actor_name")//当前属性与mangodb的actor_name相对应
    private String actorName;
    private Boolean gender;
    private Date birth;
}
